package com.chat.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chat.core.entity.ChatSessionRead;

import java.util.List;

/**
 * 聊天记录(ChatSessionRead)表服务接口
 *
 * @author makejava
 * @since 2022-04-22 14:25:01
 */
public interface ChatSessionReadService extends IService<ChatSessionRead> {

    /**
     * 查询聊天记录
     * @param crtUserId
     * @param userId
     * @return
     */
    List<ChatSessionRead> getSessionReadByUserId(Integer crtUserId,Integer userId);

    /**
     * 修改聊天记录未读状态
     * @param crtUserId
     * @param userId
     */
    void updateReadState(Integer crtUserId,Integer userId);
}
